<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>属性列表</title>
	<link rel="stylesheet" href="{{ asset('admin_style/css/pintuer.css') }}">
   <link rel="stylesheet" href="{{ asset('admin_style/css/admin.css') }}">
   <link rel="stylesheet" href="{{ asset('admin_style/css/pintuer.css') }}">
   <link rel="stylesheet" href="{{ asset('admin_style/css/admin.css') }}">
<link rel="stylesheet" href="{{asset('admin_style/css/style.css')}}">
<link rel="stylesheet" href="{{ asset('admin_style/js/umeditor/themes/default/css/umeditor.css')}}">

</head>
<div class="panel-head"><strong class="icon-reorder"> 商品属性值列表</strong></div>
<body>
<table class="table table-hover text-center">
      <tr>
    	<th>属性值id</th>
		<th>属性值名</th>
		<th>操作</th>
      </tr>
      @foreach($data as $v)
        <tr>
          <td>{{$v->id}}</td>
				<td>{{$v->attr_value}}</td>
				<td><a href="javascript:void(0)" onclick="del({{$v->id}})">删除</a></td>
			</tr>
      @endforeach
	</table>
</body>
</html>
<script>
	function del(id){
		if(confirm("您确定要删除这个属性吗？")){
			location.href="{{ url('goods/attr_del')}}/"+id;
		}
	}
</script>